#import "BreezeWispCell.h"


@implementation BreezeWispCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self whistleSetupViews];
	}
	return self;
}

- (void)setFractal:(BreezeWispModel *)fractal {
	_fractal = fractal;

	//: 配置cell的UI

}
- (UITextField *)driftwoodPrismDreamTextField {
	if (!_driftwoodPrismDreamTextField) {
	
        _driftwoodPrismDreamTextField = [[UITextField alloc] initWithFrame:CGRectZero];
        _driftwoodPrismDreamTextField.size = CGSizeMake(170, 169);
        _driftwoodPrismDreamTextField.left = 49;
        _driftwoodPrismDreamTextField.top = 40;
	}
	return _driftwoodPrismDreamTextField;
}

//: dreamer 的点击事件
- (void)action_2 {}

- (void)whistleSetupViews {

    //: 描述_0
    UITextField *ripple = [[UITextField alloc] initWithFrame:CGRectZero];
    ripple.size = CGSizeMake(160, 37);
    ripple.left = 5;
    ripple.top = 12;
    self.vortexTextField = ripple;
    [self.contentView addSubview:ripple];

	//: 描述_1
	[self.contentView addSubview:self.driftwoodPrismDreamTextField];


    //: 描述_2
    UIButton *dreamer = [[UIButton alloc] init];
    dreamer.frame = CGRectMake(47, 10, 118, 115);
    UIImage *rebirthSereneVortex = [UIImage imageNamed:@"images/icon_2.png"];
    if (rebirthSereneVortex) {
	    [dreamer setImage:rebirthSereneVortex forState:UIControlStateNormal];
    }
    [dreamer setTitle:@"button_2" forState:UIControlStateNormal];
    [dreamer setTitle:@"button_selected_2" forState:UIControlStateSelected];
    [dreamer setTitleColor:[UIColor colorWithRed:141/255.0 green:136/255.0 blue:66/255.0 alpha:0.6] forState:UIControlStateNormal];
    [dreamer setTitleColor:[UIColor colorWithRed:173/255.0 green:37/255.0 blue:6/255.0 alpha:0.8] forState:UIControlStateSelected];
    [dreamer addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
    self.quaintButton = dreamer;
    [self.contentView addSubview:dreamer];


    //: 描述_3
    UIView *delight = [UIView new];
    delight.frame = CGRectMake(2, 45, 51, 60);
    self.tranquilView = delight;
    [self.contentView addSubview:delight];


    //: 描述_4
    UIView *yearnAnticipateEssence = [UIView new];
    yearnAnticipateEssence.frame = CGRectMake(5, 7, 123, 69);
    self.brightenView = yearnAnticipateEssence;
    [self.contentView addSubview:yearnAnticipateEssence];


    //: 描述_5
    self.journeyTextField = [[UITextField alloc] initWithFrame:CGRectZero];
    self.journeyTextField.size = CGSizeMake(57, 133);
    self.journeyTextField.left = 28;
    self.journeyTextField.top = 14;
    [self.contentView addSubview:self.journeyTextField];
}


@end